package h0730;

import java.util.Scanner;
import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
  * @description 在字符串中找出连续最长的数字串
  * @author 不知名帅哥
  * @date 2024/7/30 23:21
  * @version 1.0
*/
public class FindLongestNumbersStringInString {
    public static void main(String[] args) {
        Scanner sc=new Scanner(System.in);
        String s = sc.nextLine();
        sc.close();
        //?匹配前面的字符0次或者一次
        Pattern p = Pattern.compile("[+-]{1}\\d+(.\\d+)?");
        Matcher matcher = p.matcher(s);
        String res="";
        while (matcher.find()){
            String temp = matcher.group();
            if (temp.length()>res.length()){
                res=temp;
            }
        }
        System.out.println(res);
    }
}
